<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="box">
			<div class="item" v-for="(item,index) in config.options.fixedValues" :key="index">
				<input type="text" v-model="config.options.fixedValues[index]"/>
			</div>
			<button @click="config.options.fixedValues.push('选项'+(config.options.fixedValues.length+1))">+添加选项</button>
			<button @click="printData">查看数据</button>
		</div>
	</body>
</html>
<script src="0.0.3/vue.min.js"></script>
<script>
	new Vue({
		el:"#box",
		data(){
			return {
				config:{
					title: "单选",
					placeholder: "",
					options: {
						dataSource: '手动添加',
						fixedValues: [
							
						]
					},
					print: true,
					required: false,
					defaultValue: {
						enable: false,
						value: null
					}
				},
				widget:null,
				oldConfig:null
			}
		},
		methods:{
			printData(){
				console.log(this.config.options.fixedValues)
			}
		}
	})
</script>